<%@ Page Language="C#" MasterPageFile="~/Board.Master" AutoEventWireup="true" CodeBehind="Users.aspx.cs" Inherits="UserInterface.Users" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder" runat="server">
    <asp:Repeater runat="server" ID="UserRepeater">
        <HeaderTemplate>
            <table class="list-table">
                <tr>
                    <th>Name</th>
                    <th>Join Date</th>
                    <th>Website</th>
                </tr>
        </HeaderTemplate>
        
        <ItemTemplate>
                <tr>
                    <td class="default-column"><a href="ViewUser.aspx?userId=<%# Eval("Id") %>"><%# Eval("Username") %></a></td>
                    <td class="default-column"><%# Eval("RegisterDateTime", "{0:dd MMMM yy}")%></td>
                    <td class="default-column"><%# Eval("WebsiteUrl")%></td>
                </tr>
        </ItemTemplate>
        
        <AlternatingItemTemplate>
                <tr>
                    <td class="alternate-column"><a href="ViewUser.aspx?userId=<%# Eval("Id") %>"><%# Eval("Username") %></a></td>
                    <td class="alternate-column"><%# Eval("RegisterDateTime", "{0:dd MMMM yy}")%></td>
                    <td class="alternate-column"><%# Eval("WebsiteUrl")%></td>
                </tr>
        </AlternatingItemTemplate>
        
        <FooterTemplate>
            </table>
        </FooterTemplate>
    </asp:Repeater>
</asp:Content>
